import tables, strutils
proc transform*(input: Table[int, seq[char]]): Table[char, int] = 
  for score, letters in input:
    for letter in letters:
      result[letter.toLowerAscii] = score